package com.ggb.reactive.domain.vo

import com.fasterxml.jackson.annotation.JsonFormat
import com.ggb.reactive.domain.entity.DishFlavor
import io.swagger.v3.oas.annotations.media.Schema
import lombok.Data
import lombok.NoArgsConstructor
import java.math.BigDecimal
import java.time.Instant

@Data
@Schema(title="菜品 DishVO")
@NoArgsConstructor
data class DishVO(

    @Schema(description = "id")
    var id:Long?=null,
    @Schema(description = "菜品名")
    var name:String?=null,
    //菜品分类id
    @Schema(description = "菜品分类id")
    var categoryId:Long?=null,
    //菜品价格
    @Schema(description = "菜品价格")
    var price:BigDecimal?=null,
    //图片
    @Schema(description = "图片")
    var image:String?=null,
    //描述信息
    @Schema(description = "描述信息")
    var description:String?=null,
    //0 停售 1 起售
    @Schema(description = "0 停售 1 起售")
    var status:Int?=null,
    //更新时间
    @Schema(description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT-6")
    var updateTime:Instant?=null,
    @Schema(description = "分类名")
    var categoryName:String?=null,
    // 口味
    @Schema(description = "口味列表")
    var flavors:List<DishFlavor>?= emptyList(),

    )
